<template>
  <div>
  {{list[listId-1].desc}}
  </div>
</template>

<script>
import axios from 'axios'
  export default {
    data() {
      return {
        listId:'',
        list:[]
      }
    },
    methods: {
      getInfo(){
        axios.get("/api/list.json").then(
          this.getInfoSucc
        )
      },
      getInfoSucc(res){
        res=res.data
        if (res.ret&&res.data) {
          const data=res.data
          this.list=data.list
        }
      }
    },
    mounted() {
      this.listId=this.$route.params.id
      this.getInfo()
    },
  }
</script>

<style lang="scss" scoped>

</style>